package com.yonyou.pmclouds.projectstatus.entity;

import com.yonyou.pmclouds.basecom.entity.SuperVO;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@Table(name = "pmbd_project_status")
public class ProjectStatusVO extends SuperVO {
    public static final String PK_PROJECT_STATUS = "pkProjectStatus";
    public static final String SCODE = "scode";
    public static final String SNAME = "sname";
    public static final String SRC_TYPE = "srcType";
    public static final String PK_TENANT = "pkTenant";
    public static final String PK_SRC = "pkSrc";
    public static final String PK_SRC_ORG = "pkSrcOrg";
    public static final String STATE_SORT = "stateSort";
    public static final String ENABLE_STATUS = "enableStatus";



    @Id
    private String pkProjectStatus;
    @NotNull(groups = {ProjectStatusVO.OutterValid.class})
    private String scode;
    @NotNull(groups = {ProjectStatusVO.OutterValid.class})
    private String sname;
    //来源类型
    @NotNull(groups = {ProjectStatusVO.OutterValid.class})
    private String srcType;
    //来源租户
    private String pkTenant;
    //来源Id
    @NotNull(groups = {ProjectStatusVO.OutterValid.class})
    private String pkSrc;
    //来源组织
    @NotNull(groups = {ProjectStatusVO.OutterValid.class})
    private String pkSrcOrg;
    //启用状态
    @NotNull(groups = {ProjectStatusVO.OutterValid.class})
    private Integer enableStatus;
    @NotNull(groups = {ProjectStatusVO.OutterValid.class})
    private Integer stateSort;
    private String creator;
    private Date creationtime;
    private String modifier;
    private Date modifytime;


    public interface OutterValid {
    }
}
